//random bytes
int random_bytes(unsigned char *r, unsigned int len);